package com.qidian.by.search.service;

import com.qidian.by.search.dto.SearchItem;
import com.qidian.by.util.pojo.EsResult;
import org.elasticsearch.client.RestHighLevelClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;

import java.util.List;

/**
 * @Author: CoolPro
 * @Description:
 * @Time: 2024-05-16 14:41
 **/

public interface SearchItemService {

    int saveSearchItem(SearchItem searchItem);
    List<SearchItem> listSearchItem(String kw, int page, int limit);

    Integer selectCount(String kw);

    EsResult query(int page,int limit,String kw);
}
